public class Contact

{
        private String name;
        private String position;
        private String department;
        private String company;
        private String address;
        private String telephone;
        private String fax;
        private String mobile; 
        private String email;
        private String homepage;

        public Contact (String name, String position, String department, String company, String  address, String  telephone, String  fax, String mobile, String email, String homepage)
        {
                this.name = name;
                this.position = position;
                this.department = department;
                this.company = company;
                this.address = address;
                this.telephone = telephone;
                this.fax = fax;
                this.mobile = mobile;
                this.email = email;
                this.homepage = homepage;
        }
        
  
        public String getName()
        {
                return name;
        }

        public void setName(String name)
         {
                this.name = name;
         }

        public String getPosition()
        {
                return position;
        }

        public void setPosition(String position)
        {
                this.position = position;
        }

        public String getDepartment()
        {
                return department;
        }

        public void setDepartment(String department)
        {
                this.department = department;
        }

        public String getCompany()
        {
                return company;
        }

        public void setCompany(String company)
        {
                this.company = company;
        }

        public String getAddress()
        {
                return address;
        }

        public void setAddress(String address)
        {
                this.address = address;
        }

        public String getTelephone()
        {
                return telephone;
        }

        public void setTelephone(String telephone)
        {
                this.telephone = telephone;
        }

        public String getFax()
        {
                return fax;
        }

        public void setFax(String fax)
        {
                this.fax = fax;
        }

        public String getMobile()
        {
                return mobile;
        }

        public void setMobile(String mobile)
        {
                this.mobile = mobile;
        }

        public String getEmail()
        {
                return email;
        }

        public void setEmail(String email)
        {
                this.email = email;
        }

        public String getHomepage()
        {
                return homepage;
        }

        public void setHomepage(String home)
        {
                this.homepage = home;
        }

        public String toString()
        {
            String description;
            description = "name : " + name + "\nposition : " + position + "\n";
            description += "department : " + department + "\ncompany : " + company + "\n";
            description += "address : " + address + "\ntelephone : "  + telephone + "\n";
            description += "fax : " + fax + "\nmobile : " + mobile + "\nemail : " + email + "\n";
            description += "homepage : " + homepage;
            return description;
        }
        
        public String addString()
        {
                String description;
                description = name + "\n" + position + "\n";
                description += department + "\n" + company + "\n";
                description += address + "\n"  + telephone + "\n";
                description += fax + "\n" + mobile + "\n" + email + "\n";
                description += homepage;
                return description;
        }
}
